const http = require('http');
const hostname = '127.0.0.1';
const port = 8000;

http.createServer(function (request, response) {
    response.writeHead(200, {'Content-Type': 'text/plain', 'server': '^_^nginx^_^'});
    response.end('Hello World!');
}).listen(port, hostname, function () {
    console.log(`server running at http://${hostname}:${port}`);
});